package com.codefox.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSON;
import com.codefox.service.TbHospitalService;

@Controller
@RequestMapping(value= {"back","front"})
public class TbHospitalController {
	@Autowired
	TbHospitalService sevice;

	@ResponseBody
	@RequestMapping(value= {"listHospital"},produces="application/json;charset=UTF-8")
	public String listHospital() {
		return JSON.toJSONString(sevice.listHospital());
	}

}
